//
//  ZYXNavTwoViewController.m
//  OCUIAdvanced
//
//  导航控制器的 2 子控制器
//


#import "ZYXNavTwoViewController.h"
#import "ZYXNavThreeViewController.h"

@interface ZYXNavTwoViewController ()
- (IBAction)jumpThree;
@end

@implementation ZYXNavTwoViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.navigationItem.titleView = [UIButton buttonWithType:UIButtonTypeContactAdd];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:nil action:nil];
}

- (IBAction)jumpThree {
    ZYXNavThreeViewController *three = [[ZYXNavThreeViewController alloc] init];
    [self.navigationController pushViewController:three animated:YES];
}

@end
